package com.firefoxking.mysite.service.options.impl;

import com.firefoxking.mysite.dao.OptionsMapper;
import com.firefoxking.mysite.entity.Options;
import com.firefoxking.mysite.service.options.OptionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OptionsServiceImpl implements OptionsService {

    @Autowired
    private OptionsMapper optionsMapper;


    @Override
    public List<Options> getOptions() {
        return optionsMapper.getOptions();
    }

    @Override
    public Options getOptionsByName(String name) {
        return optionsMapper.getOptionsByName(name);
    }
}
